﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PotatoSoft
{
    namespace VOCTS
    {
        namespace Workbench
        {
            public class Project
            {
                public string ProjectID { get; set; }
                public string ProjectName { get; set; }
                public List<Examination> ProjectExaminations { get; set; }
                public Workspace Workspace { get; set; }

                public void AddExamination(Examination ex)
                {
                    if (ProjectExaminations == null)
                    {
                        ProjectExaminations = new List<Examination>();
                    }

                    if (!ProjectExaminations.Contains(ex))
                    {
                        ProjectExaminations.Add(ex);
                    }

                    ex.Project = this;
                }  
            }
        }
    }
}
